package org.baixin.entity.base;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * 
 * 报表基类。抽出公共属性
 * @author slaton.wu@gmail.com
 * @created 2011-5-27 上午10:21:37
 * @version 0.1
 */
@MappedSuperclass
public abstract class IdEntity implements Serializable {

	
	private static final long serialVersionUID = 1L;
	
	private Long id;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="id")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
}
